module.exports = {
  PrizeTypeMap: {
    1: {
      name: '满减券',
      btnText: '立即使用',
      jump: function (e) {
        this.closePop && this.closePop();
        var t = getCurrentPages();
        'pages/index/index' !== t[t.length - 1].route &&
          wx.switchTab({ url: '/pages/index/index' });
      },
    },
    2: {
      name: '立减券',
      btnText: '立即使用',
      jump: function (e) {
        this.closePop && this.closePop();
        var t = getCurrentPages();
        'pages/index/index' !== t[t.length - 1].route &&
          wx.switchTab({ url: '/pages/index/index' });
      },
    },
    3: {
      name: '大转盘',
      btnText: '去抽奖',
      jump: function (e) {
        this.closePop && this.closePop(),
          wx.navigateTo({
            url: '/pages/webview/webview?route=Active/luckyDraw&_query='.concat(
              encodeURIComponent(
                'activity_id=' + e.parent_key + '&ignore_status=1',
              ),
            ),
          });
      },
    },
    4: {
      name: '红包雨',
      btnText: '抢红包',
      jump: function (e) {
        this.closePop && this.closePop();
        var t = e.parent_key,
          n = e.child_key,
          i = 'activity_id='
            .concat(t, '&task_id=')
            .concat(n, '&ignore_status=1');
        wx.navigateTo({
          url: '/pages/webview/webview?route=Active/moneyRain&_query='.concat(
            encodeURIComponent(i),
          ),
        });
      },
    },
    5: {
      name: '集旺字',
      btnText: '查看字卡',
      jump: function (e) {
        this.closePop && this.closePop(),
          wx.navigateTo({
            url: '/packageActive/pages/2021wang/2021wang?id='.concat(
              e.parent_key,
            ),
          });
      },
    },
    6: {
      name: '实物奖',
      btnText: '立即领取',
      jump: function (e) {
        this.setData({ addressFlag: !0, popFlag: !1 }),
          console.log('addressFlag', this.data.addressFlag);
      },
    },
    7: {
      name: '领完实物最后的弹窗type',
      btnText: '查看奖品状态',
      jump: function (e) {
        this.closePop && this.closePop(),
          wx.navigateTo({
            url: '/packageOrder/pages/orderDetail/orderDetail?order_id='.concat(
              e.order_id,
            ),
          });
      },
    },
  },
  transformSignDate: function (e) {
    return e;
  },
  jizi_map: {
    s1: {
      name: '事业旺',
      icon: 'https://static.weizhegouquanqiufuwuzhongxin.com/1639380471565.png',
    },
    s2: {
      name: '家庭旺',
      icon: 'https://static.weizhegouquanqiufuwuzhongxin.com/1639380536673.png',
    },
    s3: {
      name: '财运旺',
      icon: 'https://static.weizhegouquanqiufuwuzhongxin.com/1639380561966.png',
    },
    s4: {
      name: '好运旺',
      icon: 'https://static.weizhegouquanqiufuwuzhongxin.com/1639380586351.png',
    },
    s5: {
      name: '身体旺',
      icon: 'https://static.weizhegouquanqiufuwuzhongxin.com/1639380611862.png',
    },
    s6: {
      name: '鸿福旺',
      icon: 'https://static.weizhegouquanqiufuwuzhongxin.com/1639380633931.png',
    },
  },
};
